<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客管理登录</title>
    <link rel="icon" th:href="@{/images/adminlogin.png}" sizes="32x32">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/he.css" th:href="@{/css/he.css}">
    <link rel="stylesheet" href="../../static/css/button.css" th:href="@{/css/button.css}">
</head>
<style>

</style>
<body>

<br>
<br>
<br>

<div class="ui placeholder segment" style="margin-left:
 500px;margin-right: 500px;width: 1150px; height: 580px;position: absolute;top: 170px;left: -110px">
    <div class="ui two column very relaxed stackable grid">
        <div class="middle aligned column">
            <div>
                <img th:src="@{/gif/work.gif}" alt="" style="width: 500px;height: 500px">
            </div>
        </div>
        <!--登录表单-->
        <div class="column login-box" style="position: absolute;top: 300px;left: 62em ;width: 450px">
            <form name="login" method="post" th:action="@{/admin/login}">
                <!--                <div class="ui segment">-->
                <!--                    <div class="field">-->
                <!--                        <div class="ui left icon input user-box">-->
                <!--                            <i class="user icon"></i>-->
                <!--                            <input type="text" name="username" placeholder="用户名">-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                    <div class="field">-->
                <!--                        <div class="ui left icon input">-->
                <!--                            <i class="lock icon"></i>-->
                <!--                            <input type="password" name="password" placeholder="密码">-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                    <button class="ui fluid large teal submit button">登 录</button>-->
                <!--                </div>-->


                <div class="user-box">
                    <input type="text" name="username" required="">
                    <label>Username</label>
                </div>
                <div class="user-box">
                    <input type="password" name="password" required="">
                    <label>Password</label>
                </div>
                <a onclick="document.forms['login'].submit()" style="width: 385px; text-align: center;">
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                    登 录
                </a>
                <div class="ui mini negative message" th:unless="${#strings.isEmpty(message)}" th:text="${message}">
                    用户名或密码错误
                </div>

            </form>
        </div>
    </div>
    <!--线条-->
    <div class="ui vertical divider">
        <i class="ui code icon"></i>
    </div>
</div>


<!---->


<div class="m-container-small m-padded-tb-massive" style="max-width: 30em !important;">
    <div class="ur container">
        <div class="ui middle aligned center aligned grid">

        </div>
    </div>
</div>

</body>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>


<script>
    $('.ui.form').form({
        fields: {
            username: {
                identifier: 'username',
                rules: [{
                    type: 'empty',
                    prompt: '请输入用户名'
                }]
            },
            password: {
                identifier: 'password',
                rules: [{
                    type: 'empty',
                    prompt: '请输入密码'
                }]
            }
        }
    });
</script>
</html>